package com.alfred.mall.miaosha.biz.convert;

import com.alfred.mall.miaosha.api.bo.MiaoshaGoodsBO;
import com.alfred.mall.miaosha.api.dto.MiaoshaRequestDTO;
import com.alfred.mall.miaosha.biz.dataobject.MiaoshaGoodsDO;
import com.alfred.mall.mq.api.dto.MiaoshaMessageDTO;
import org.mapstruct.Mapper;
import org.mapstruct.Mappings;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface MiaoshaGoodsConvert {

    MiaoshaGoodsConvert INSTANCE = Mappers.getMapper(MiaoshaGoodsConvert.class);

    @Mappings({})
    List<MiaoshaGoodsBO> convert(List<MiaoshaGoodsDO> miaoshaGoodsDO);

    @Mappings({})
    MiaoshaGoodsBO convert(MiaoshaGoodsDO miaoshaGoodsDO);

    @Mappings({})
    MiaoshaMessageDTO convert(MiaoshaRequestDTO miaoshaRequestDTO);

}
